package com.hts.spring06.utils;

import java.util.logging.Logger;

public class LoggerUtils {

    static Logger logger = Logger.getLogger("DynamicProxy");

    public static  void start(String method){
        logger.info("【日志】" + method+"【开始】");
    }

    public static  void end(String method){
        logger.info("【日志】" + method+"【结束】");
    }
    public static  void end(String method,Object reuslt){
        logger.info("【日志】" + method+"【结束】,返回值是：" +    reuslt);
    }


    public static  void exception(String method, Exception e){
        logger.info("【日志】" + method+"出了" +e.getMessage());
    }

}
